Skip to main content

Operation Base Activity Lab 1

Objective

Create a workflow that creates a new person in EmpowerID using the Operation Base Activity.

Credentials

  • User ID: Test
  • Password: P@$$w0rd

Steps

  1. Start the 20331B-NYC-DC-05 virtual machine. Wait for the virtual machine to display the Desktop.

  2. On your Desktop, Right-click on Workflow Studio (WFS), and then click Run as administrator. Workflow Page

  3. Wait for WFS to start and enter your credentials.

Workflow Page
Workflow Page
  1. In Solution Explorer, right-click on the Developer Packages folder, create a new folder called “DemoLabs” and click the Ok button. Workflow Page

  2. Add New Folder dialog box will appear from it; select the following options:

    • User Interface > Lookup Control
    • User Interface > Forms
    • User Interface > UI Pages
    • Workflows > Applications And click the Ok button. Workflow Page
  3. Expand the Developer Packages folder, find the DemoLabs folder, expand it under the DemoLabs folder, expand the User Interface folder right-click on the Forms folder, hover your mouse on the New User Interface option and Click on Form. Workflow Page

  4. Wait for the Form designer to be loaded.

  5. Click on the Save button to save your Form and give it the name Training_UserInputForm. Workflow Page

  6. Right-click on the Form Data, then click on Add Object and go to Rbac Components tab. From there, select the Person component and click on Add button. Workflow Page

  7. Double-click on Person1 and rename it to TargetPerson. Workflow Page

  8. Now expand the TargetPerson component and drag and drop the following fields/columns on the Form Designer:

    • FirstName
    • Last Name
    • Company
    • PrimaryOrgRoleOrgZoneID
    • Password Workflow Page
  9. Now double-click on Tab1 and rename it to Person Info, then double-click on Tab1 Section1 and give it the name About, then double-click on Tab1 Section 2 and give it the name Company Details. Lastly, double-click on FirstName and LastName fields and put a space between them. Workflow Page

  10. Now right-click on the Password text box, and from the menu, click Edit. Workflow Page

  11. Field configuration dialog box will appear. Click on the Control Types tab and select Password Confirmation and click on the Ok button. Workflow Page

  12. Now right-click on the PrimaryOrgRoleOrgZoneID, and from the menu, click on Edit. A Field Configuration dialog box will appear, go to the Control Types tab and select the OrgRoleOrgZone picker and Click on the Ok button. Workflow Page

  13. Now click on the publish button to publish your Form. The publishing dialog box will appear. Click on the Next button twice to Publish the Form. Workflow Page

  14. Once published successfully, click on the Ok button. Workflow Page

  15. Now, it will ask you to restart the workflow studio. Click the Yes button. Workflow Page

  16. Expand the Developer Packages folder, find the DemoLabs folder expand it under the DemoLabs folder, expand the Workflows folder right-click on the Applications folder, hover your mouse on the New Workflow option, and Click on Flow Chart Workflow. Workflow Page

  17. Wait for the Workflow Designer Pane to be loaded. Once loaded, click on the save button to save your workflow. Workflow Page

  18. Give your workflow a name, in this case, Training_CreatePersonWF.

  19. Once saved, drag and drop your Form activity onto the designer pane of Workflow. Workflow Page

  20. Keep the activity selected. If not selected, then select it, and on the right-hand side, change its (Name) property to UserCreationForm. Workflow Page

  21. Now drag and drop CreatePersonOperation activity onto the designer pane. Workflow Page

  22. Keep the Operation Base Activity selected and give it the name CreatePersonInEmpowerID. In the description type Create Person in EmpowerID. Workflow Page

  23. Right-click on the CreatePersonInEmpowerID activity and select Enable/Disable Executing Operations. Workflow Page

  24. Move Create from Disabled Operations to the Enabled Operation section. Workflow Page

  25. Now drag and drop the ApplyNamingConvention activity onto the designer pane. Workflow Page

  26. Give it a Name for example APAForUsers. Workflow Page

  27. Now click on the start circle, drag the line from it, connect it with your APAForUsers activity, and similarly connect the lines that will come out from your activity to the CreatePersonInEmpowerID activity to the End circle. Workflow Page

  28. Now go to the Bindings tab, and from the left section, expand the UserCreationForm. Underneath it, expand the Input/Output and drag its TargetPerson and drop it onto the TargetPerson of APAForUsers.

  29. Now expand APAForUsers from the left section, expand Input/Output and drag the TargetPerson and drop it on the Form_TargetPerson property of CreatePersonInEmpowerID. You can find the Form_TargetPerson property under the Input. Workflow Page

  30. Now click on the publish button to publish your workflow; a dialog box will appear. Click on the Next button twice. Once saved successfully, click on the Ok button. Workflow Page

  31. Open internet explorer or Edge or whichever browser is installed on your machine and go to this URL: Login using EmpowerID

  32. It will ask you to enter your credentials and provide them with your username and password given to you by your lab instructor. Workflow Page

  33. It will take you to your EmpowerID dashboard page. On the left-hand side, click on Low Code/No Code Workflows, and Underneath it, click on Low Code Workflows. Workflow Page

  34. It will take you to the RequestWorkflow page; on the right-hand side of your page, we have an actions pane under it click on the Publish Workflow Studio Item. Workflow Page

  35. On the PublishWorkflowStudioItem page, click on choose file, select the .pub file for Training_UserInputForm and then click open file, and it will get selected now click on the Submit button. Workflow Page

  36. You will get this message which tells that deployment is successful. Workflow Page

  37. Now click on the Publish Workflow Studio Item again, and this time select the Training_CreatePersonWF published file and hit on the submit button to publish it.

  38. Close your browser and workflow studio and reset the IIS on your machine. Make sure you open Command Prompt in Administration mode. Workflow Page

  39. Now open the EmpowerID on the browser again, expand the Low Code/No Code Workflows, and Underneath it, click on Low Code Workflows.

  40. In the search box, type your workflow name Training_CreatePersonWF and hit the search button. Your workflow will appear, click on it under the Run column. Workflow Page

  41. Now, you can see your Form, fill out the fields, and test it. Workflow Page

  42. End